package com.buba.appointment.service.impl;

import com.buba.appointment.vo.MedicalAppointmentVo;
import com.buba.pojo.appointment.MedicalAppointment;
import com.buba.appointment.mapper.MedicalAppointmentMapper;
import com.buba.appointment.service.MedicalAppointmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buba.pojo.record.Convention;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 体检预约表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Service
public class MedicalAppointmentServiceImpl extends ServiceImpl<MedicalAppointmentMapper, MedicalAppointment> implements MedicalAppointmentService {

    @Autowired
    private MedicalAppointmentMapper medicalAppointmentMapper;


    @Override
    public List<MedicalAppointmentVo> medicalRecord(Integer id, String begin, String end) {
        return medicalAppointmentMapper.medicalRecord(id , begin , end);
    }

    @Override
    public MedicalAppointmentVo medicaDetails(Integer id) {
        return medicalAppointmentMapper.medicaDetails(id);
    }

}
